package io.renren.modules.store.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author steakliu
 * @email 2319492349@qq.com
 * @date 2021-01-24 17:20:11
 */
@Data
@TableName("t_store_food")
public class TStoreFoodEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 菜品ID
	 */
	@TableId
	private Long id;
	/**
	 * 菜品编号
	 */
	private String foodNo;
	/**
	 * 所属租户
	 */
	private Long sellerId;
	/**
	 * 菜品名称
	 */
	private String foodName;
	@TableField(exist = false)
	private List<Long> useRangeList;
	/**
	 * 使用范围
	 */
	private String useRange;
	/**
	 * 所属分类
	 */
	private Long typeId;
	/**
	 * 简码
	 */
	private String shortCode;
	/**
	 * 排序
	 */
	private Integer sort;
	/**
	 * 菜品价钱
	 */
	private Double price;
	/**
	 * 会员价
	 */
	private Double memberPrice;
	/**
	 * 微信会员价
	 */
	private Double weixinMemberPrice;
	/**
	 * 成本价
	 */
	private Double costPrice;
	/**
	 * 提成
	 */
	private String bommission;
	/**
	 * 菜品别名
	 */
	private String foodAlias;
	/**
	 * 状态(1正常2停用)
	 */
	private Integer status;
	/**
	 * 规格
	 */
	private String norms;
	/**
	 * 口味备注
	 */
	private String flavorReamark;
	/**
	 * 菜品介绍
	 */
	private String foodReamark;
	/**
	 * 菜品图片
	 */
	private String foodImg;
	/**
	 * 启用称重(1是2否)
	 */
	private Integer enableWeigh;
	/**
	 * 启用开台预定(1是2否)
	 */
	private Integer enableOpenReserve;
	/**
	 * 库存
	 */
	private Integer stock;
	/**
	 * 最低折扣
	 */
	private Double minDiscount;
	/**
	 * 备注
	 */
	private String remark;

	@TableField(exist = false)
	private List<TStoreFoodSpecsEntity> specsList = new ArrayList<>();

	@TableField(exist = false)
	private List<TStoreFoodFlavorEntity> flavorList = new ArrayList<>();

	private Integer normsStatus;

	private Integer flavorStatus;

	private Integer sellOffStatus; //沽清状态 0已售罄 1未售罄

}
